﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Dzzzr
{
	/// <summary>
	/// User
	/// </summary>
	[DataContract]
	public class DzzzrUser
	{
		/// <summary>
		/// ID
		/// </summary>
		protected int _ID;
		/// <summary>
		/// ID
		/// </summary>
		[DataMember]
		public int ID
		{
			get { return _ID; }
			set { _ID = value; }
		}

		/// <summary>
		/// Login
		/// </summary>
		protected string login = string.Empty;
		/// <summary>
		/// Login
		/// </summary>
		[DataMember]
		public string Login
		{
			get { return login; }
			set { login = value ?? string.Empty; }
		}

		/// <summary>
		/// Password
		/// </summary>
		protected string password = string.Empty;
		/// <summary>
		/// Password
		/// </summary>
		[DataMember]
		public string Password
		{
			get { return password; }
			set { password = value ?? string.Empty; }
		}

		/// <summary>
		/// TeamID
		/// </summary>
		protected int _TeamID;
		/// <summary>
		/// TeamID
		/// </summary>
		[DataMember]
		public int TeamID
		{
			get { return _TeamID; }
			set { _TeamID = value; }
		}

		/// <summary>
		/// UserToRole
		/// </summary>
		private List<DzzzrUserToRole> _UserToRoles = new List<DzzzrUserToRole>();
		/// <summary>
		/// UserToRole
		/// </summary>
		[DataMember]
		public List<DzzzrUserToRole> UserToRoles
		{
			get
			{
				return this._UserToRoles;
			}
			set
			{
				this._UserToRoles = value;
			}
		}
	}
}
